<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickspritegoal.cpp -->
  <title>SpriteGoal QML 类型 | Qt Quick 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtquick-index.html">Qt Quick</a></td><td ><a href="qtquick-qmlmodule.html">QML类型</a></td><td >SpriteGoal QML 类型</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#properties">属性</a></li>
<li class="level1"><a href="#details">详细信息</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">SpriteGoal QML 类型</h1>
<span class="subtitle"></span>
<!-- $$$SpriteGoal-brief -->
<p>用于改变精灵粒子的状态。 <a href="#details">更多...</a></p>
<!-- @@@SpriteGoal -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> 导入语句：</td><td class="memItemRight bottomAlign"> import QtQuick.Particles 2.12</td></tr><tr><td class="memItemLeft rightAlign topAlign">继承自：</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtquick-particles-affector.html">Affector</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtquick-particles-spritegoal-members.html">所有成员的列表，包括继承成员</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">属性</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtquick-particles-spritegoal.html#goalState-prop">goalState</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtquick-particles-spritegoal.html#jump-prop">jump</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtquick-particles-spritegoal.html#systemStates-prop">systemStates</a></b></b> : bool</li>
</ul>
<!-- $$$SpriteGoal-description -->
<a name="details"></a>
<h2 id="details">详细信息</h2>
<!-- @@@SpriteGoal -->
<h2>属性文档</h2>
<!-- $$$goalState -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="goalState-prop">
<td class="tblQmlPropNode"><p>
<a name="goalState-prop"></a><span class="name">goalState</span> : <span class="type"><a href="../qtqml/qml-string.html">string</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>受影响的粒子应该移动到的精灵的名称。</p>
<p>Sprite 状态定义了持续时间和它们之间的转换，设置goalState 将导致它忽略任何路径权重（包括 0）并沿着最快到达目标状态的路径前进。它将通过该路径上的中间状态。</p>
</div></div><!-- @@@goalState -->
<br/>
<!-- $$$jump -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="jump-prop">
<td class="tblQmlPropNode"><p>
<a name="jump-prop"></a><span class="name">jump</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>如果为 true，受影响的精灵将直接跳转到目标状态，而不是采用最短的有效路径到达那里。他们也不会完成他们当前的状态，而是立即移动到目标状态的开始。</p>
<p>默认为<span lang="zh-cn">false</span>。</p>
</div></div><!-- @@@jump -->
<br/>
<!-- $$$systemStates -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="systemStates-prop">
<td class="tblQmlPropNode"><p>
<a name="systemStates-prop"></a><span class="name">systemStates</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>不推荐使用的，使用<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-particles-groupgoal.html">GroupGoal</a>代替</p>
</div></div><!-- @@@systemStates -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
